<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache">

	<title>운세의 신</title>

	<link rel="stylesheet" type="text/css" href="/css/common.css">
	<link rel="stylesheet" type="text/css" href="/css/sub.css">
	<link rel="stylesheet" type="text/css" href="/css/result.css"/>
	
	<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
	<link href="/css/lib/myconfig.jquery.validate.css" rel="stylesheet" type="text/css"/>

	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script> 
	<script type="text/javascript" src="/js/lib/jquery.validate.min.js"></script>
	<script type="text/javascript" src="/js/lib/myconfig.jquery.datepicker.js"></script>
	<script src="/js/common_result.js" type="text/javascript"></script>
	<script src="/js/snsLinker.js" type="text/javascript"></script>

	<script type="text/javascript">
		function result(idx, user_name, sex, birth_yyyy, birth_mm, birth_dd) {
			//alert(user_name+','+sex+','+birth_yyyy+','+birth_mm+','+birth_dd);
			$("#frm #idx").val(idx);
			$("#frm #user_name").val(user_name);
			$("#frm #sex").val(sex);
			$("#frm #birth_yyyy").val(birth_yyyy);
			$("#frm #birth_mm").val(birth_mm);
			$("#frm #birth_dd").val(birth_dd);
			$("#frm").submit();
		}

		// 스타 궁합 페이지로 이동
		function gunghap(idx, your_name, your_sex, your_birth_yyyy, your_birth_mm, your_birth_dd) {
			$("#frm_gunghap #artist_idx").val(idx);
			$("#frm_gunghap #your_name").val(your_name);
			$("#frm_gunghap #your_sex").val(your_sex);
			$("#frm_gunghap #your_birth_yyyy").val(your_birth_yyyy);
			$("#frm_gunghap #your_birth_mm").val(your_birth_mm);
			$("#frm_gunghap #your_birth_dd").val(your_birth_dd);
			$("#frm_gunghap").submit();
		}
	</script>
</head>
<body>
<form name="frm" id="frm" method="post" action="/unse/star/todaybirth/result">
	<input type="hidden" name="target_yyyy" id="target_yyyy" value="<?=date("Y",time());?>"  />
	<input type="hidden" name="idx" id="idx" value="" />
	<input type="hidden" name="user_name" id="user_name" value="" />
	<input type="hidden" name="sex" id="sex" />
	<input type="hidden" name="birth_yyyy" id="birth_yyyy" />
	<input type="hidden" name="birth_mm" id="birth_mm" />
	<input type="hidden" name="birth_dd" id="birth_dd" />
	<input type="hidden" name="birth_hh" id="birth_hh" value="0" />
	<input type="hidden" name="birth_solunar" id="birth_solunar" value="S_C" />
</form>
<form name="frm_gunghap" id="frm_gunghap" method="post" action="/unse/star/gunghap/form">
	<input type="hidden" name="artist_idx" id="artist_idx" />
	<input type="hidden" name="your_name" id="your_name" />
	<input type="hidden" name="your_sex" id="your_sex" />
	<input type="hidden" name="your_birth_yyyy" id="your_birth_yyyy" />
	<input type="hidden" name="your_birth_mm" id="your_birth_mm" />
	<input type="hidden" name="your_birth_dd" id="your_birth_dd" />
</form>
<div id="wrap">
	<!-- Header -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_header.php'; ?>
	<!--// Header -->

	<!--커튼 데코레이션-->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/drape.php'; ?>
	<!--//커튼 데코레이션-->
	
	<!--컨텐츠-->
	<div id="content">
   	<!--휘장-->
		<div class="keybox1"> </div>
		<!--휘장-->
		
		<!--왼쪽 컨텐츠-->
		<div class="assistant">
			<!--왼쪽 메뉴-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/inc_lnb.php'; ?>
			<!--// 왼쪽 메뉴-->

			<!--추천테마-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/theme2.php'; ?>
			<!--//추천테마-->

			<!--오늘의 추천! 무료운세-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/free.php'; ?>
			<!--//오늘의 추천! 무료운세-->
            
			<!--고객센터-->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/cs.php'; ?>
			<!--//고객센터_추가-->
		</div>
		<!--//왼쪽 컨텐츠-->

		<!-- 메인컨텐츠-->
		<div class="cont_result">
			<div class="today_star">
				<h3 class="visual blind">오늘의 태어난 스타 비쥬얼</h3>
				<div class="result">
					<div class="box">
						<div class="info">
							<div class="person">
								<dl class="star_info">
									<dt><img src="/images/common/icon_star/icon_<?=$artist['job_icon']?>.png" alt="아이콘" /><em><?=$artist['artist_name']?></em></dt>
									<dd><em>생년월일</em><?=$artist['birth_yyyy']?>년 <?=$artist['birth_mm']?>월 <?=$artist['birth_dd']?>일</dd>
									<dd><em>직업</em><?=$artist['job']?></dd>
									<dd><em>신체사이즈</em><?=$artist['body']?></dd>
								</dl> 
							</div><!--person-->
							<div class="saju">
								<table width="300px" summary="음양오행정보" cellpadding="0" cellspacing="0">
									<caption class="blind">음양오행정보</caption>
									<colgroup>
										<col width="*" />
										<col width="58px" />
										<col width="58px" />
										<col width="58px" />
										<col width="58px" />
									</colgroup>
									<thead>
										<tr>
											<th scope="col" class="tle">사주명식</th>
											<th scope="col">생시</th>
											<th scope="col">생일</th>
											<th scope="col">생월</th>
											<th scope="col">생년</th>
										</tr>
									</thead>
									<tbody>
										<tr>
											<td class="tle"><img src="/images/star/s_a.gif" alt="천간" /><p>천간</p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h1']?>.gif" alt="생시" /><p><?=$contents['sajuMyungSikChungan']['sin_hour_h']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h2']?>.gif" alt="생일" /><p><?=$contents['sajuMyungSikChungan']['sin_day_h']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h3']?>.gif" alt="생월" /><p><?=$contents['sajuMyungSikChungan']['sin_month_h']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h4']?>.gif" alt="생년" /><p><?=$contents['sajuMyungSikChungan']['sin_year_h']?></p></td>
										</tr>
										 <tr>
											<td class="tle"><img src="/images/star/s_b.gif" alt="지지" /><p>지지</p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h5']?>.gif" alt="생시" /><p><?=$contents['sajuMyungSikJiji']['sin_hour_e']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h6']?>.gif" alt="생일" /><p><?=$contents['sajuMyungSikJiji']['sin_day_e']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h7']?>.gif" alt="생월" /><p><?=$contents['sajuMyungSikJiji']['sin_month_e']?></p></td>
											<td><img src="/images/star/<?=$contents['sajuMyungSikImage']['h8']?>.gif" alt="생년" /><p><?=$contents['sajuMyungSikJiji']['sin_year_e']?></p></td>
										</tr>
									</tbody>
								</table>
							</div><!--saju-->
						</div><!--info-->
	
						<div class="conts">
							<div class="result01">
								<h4><em>(<?=date('Y.m.d',time())?>)</em></h4>
								<dl>
									<dd>
										
									<?=$contents['S087']['db_data']; ?>
									</dd>
								</dl>
							 </div>
							<div class="result01">
								<h4><img src="/images/star/todaystar_t3.png" alt="타고난 성격 스타일 풀이" /></h4>
								<dl>
									<dd>
										
										<?=$contents['T060']['db_data']; ?>
									</dd>
								</dl>
							</div>
                            
									<p> ※ 본 내용은 포털 등 미디어상에 공개된 스타들의 생년월일을 기반으로 사주명리학에 의거한 결과입니다. <br />
                                    공개된 생년월일이 실제와 다를 경우 결과가 달라질 수 있습니다.</p>
							
						</div><!--conts-->
					</div><!--box-->
	
					<div class="star_list">
						<h4><em><?=$artist['artist_name']?></em><img src="/images/star/todaystar_t2.png" alt="타고난 성격스타일이 같은 스타" style="vertical-align:top;" /></h4>
<?
	$MAX_SIZE = 30;
	$COL_SIZE = 3;
	$total_cnt = count($artist_list['T060']);

	for ($i=0; $i < $total_cnt; $i++) { 
		if ($MAX_SIZE == $i) break;
		$item = $artist_list['T060'][$i];
		if ($i == 0 || $i%$COL_SIZE == 0) { ?>
						<ul>
<?		} ?>
							<li>
								<dl class="star_info">
								   	<dt><img src="/images/common/icon_star/icon_<?=$item['job_icon']?>.png" alt="아이콘" /><em><?=$item['artist_name']?></em></dt>
									<dd><em>생년월일</em><?=$item['birth_yyyy']?>년 <?=$item['birth_mm']?>월 <?=$item['birth_dd']?>일</dd>
									<dd><em>직업</em><?=$item['job']?></dd>
									<dd><em>신체사이즈</em><?=$item['body']?></dd>
									<dd><a href="javascript:;" onclick="result('<?=$item['idx']?>','<?=$item['artist_name']?>','<?=$item['sex']?>','<?=$item['birth_yyyy']?>','<?=$item['birth_mm']?>','<?=$item['birth_dd']?>');"><img src="/images/common/btn_unse.gif" / alt="운세보기"></a><a href="javascript:;" onclick="gunghap('<?=$item['idx']?>','<?=$item['artist_name']?>','<?=$item['sex']?>','<?=$item['birth_yyyy']?>','<?=$item['birth_mm']?>','<?=$item['birth_dd']?>');"><img src="/images/main/btn_conect.gif" / alt="궁합보기"></a></dd>
								</dl> 
							</li>
<?		if (($i+1)%$COL_SIZE == 0 || ($i+1) == $total_cnt) { ?>
						</ul>
<?		}
	}
?>
					</div><!--star_list-->
				</div><!--result--> 
			</div>
			<!--today_star--> 

			<!--기능 버튼 -->
			<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/unse/button_bar.php'; ?>
			<!--//기능 버튼 -->
	
			<!--하단컨텐츠-->
			<div class="assistant4"> 
				<!--함께보면좋은 운세-->
				<div class="left">
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/together2.php'; ?>
				</div>
				<!--//함께보면좋은 운세--> 
				
				<div class="right">
					<!--후기게시판-->
					<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/slice/postscript_list.php'; ?>
					<!--//후기게시판-->
				</div>
			</div>
			<!--//하단컨텐츠-->

		</div>
		<!--// 메인컨텐츠-->

		<!--서비스배너-->
		<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/static/bn_service.php'; ?>
		<!--//서비스배너-->
	</div>
	<!--컨텐츠-->

	<!-- Footer -->
	<? include_once $_SERVER['DOCUMENT_ROOT'].'/include/commons/main_footer.php'; ?>
	<!--// Footer -->
</div>
<script language="javascript" src="http://ad1.sportschosun.com/js.kti/szo/unsin@star"></script>
</body>
</html>